package admin

import (
	"jwgin/middleware"

	gin "github.com/gin-gonic/gin"
)

type BaseRouter struct{}

func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) {
	baseRouter := Router.Group("admin")
	new(Login).Routers(baseRouter)

	//赛程赛果
	new(scheduler).Routers(baseRouter)

	baseRouter.Use(middleware.Jwt())
	new(admin).Routers(baseRouter)      //管理员
	new(company).Routers(baseRouter)    //公司
	new(user).Routers(baseRouter)       //用户
	new(recordBean).Routers(baseRouter) //消费

	//活动
	new(ActivityTemplate).Routers(baseRouter) //活动模板
	new(Activity).Routers(baseRouter)         //活动列表
	new(ActivitySignIn).Routers(baseRouter)   //活动列表

	//礼物
	new(gift).Routers(baseRouter) //礼物列表

	//流水
	new(exchange).Routers(baseRouter) //礼物列表

	//系统方面
	new(newsClass).Routers(baseRouter)      //新闻分类
	new(news).Routers(baseRouter)           //新闻分类
	new(ResourcesClass).Routers(baseRouter) //资源分类
	new(Resources).Routers(baseRouter)      //资源列表
	new(link).Routers(baseRouter)           //友情
	new(whois).Routers(baseRouter)          //系统
}
